import type { AppRouteRecordRaw } from '@/router/types';
import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const bookmark: AppRouteRecordRaw = {
  path: '/bookmark',
  name: 'Bookmark',
  component: LAYOUT,
  redirect: '/bookmark/workBookmark',
  meta: {
    title: '书签',
    icon: 'material-symbols:bookmark-star-outline',
    orderNo: 2,
    hideBreadcrumb: false,
    hideChildrenInMenu: false,
    hideMenu: false,
  },
  children: [
    {
      path: 'workBookmark',
      name: 'WorkBookmark',
      component: () => import('@/views/bookmark/workBookmark/index.vue'),
      meta: {
        title: t('routes.demo.bookmark.workBookmark'),
        hideMenu: false,
      },
    },
    {
      path: 'funBookmark',
      name: 'FunBookmark',
      component: () => import('@/views/bookmark/funBookmark/index.vue'),
      meta: {
        title: t('routes.demo.bookmark.funBookmark'),
        hideMenu: false,
      },
    },
  ],
};

export default bookmark;
